﻿<%@ Page Title="" Language="C#" MasterPageFile="Site1.Master" AutoEventWireup="true" CodeBehind="CycleAdd.aspx.cs" Inherits="RaceList.Admin.Relay.CycleAdd" %>

<%--<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="MyContentPlaceHolder" runat="server">
    <div style="overflow: hidden;" id="Ipowbody-content">
        <div class="wrap">
            <script src="../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
            <link rel="stylesheet" type="text/css" href="/admin/theme/classic/css/article.css"
                media="screen">
            <h2 class="title">
                <asp:Image ID="LogoImage" runat="server" ImageUrl="../Images/icons_article.gif" />
                <asp:Label ID="NameLabel" runat="server" Text="发布活动"> </asp:Label>
            </h2>
            <div class="Tab menuTab">
                <ul class="Tabs">
                    <li class="TabIn" id="tabArticle_option"><a>基本信息</a> </li>
                </ul>
            </div>
            <asp:Literal runat="server" ID="Message"></asp:Literal>
            <table>
                <tr style="height: 36px;">
                    <td>活动标题
                    </td>
                    <td>
                        <asp:TextBox ID="txtTitle" Width="500px" runat="server"></asp:TextBox><span style="color: Red;"> 一百字以内*</span>
                    </td>
                </tr>
                <tr style="height: 36px;">
                    <td>活动周期
                    </td>
                    <td>
                        <%--<input type="text" id="txtTest" onclick="WdatePicker({ vel: 'txtTest',minDate:'%y-%M-%d' })" />--%>
                        <asp:TextBox ID="txtStartDate" runat="server" onClick="WdatePicker({vel:'txtStartDate',doubleCalendar:'true'
                            ,dateFmt:'yyyy-MM-dd HH:mm:ss',isShowWeek:'true',startDate:'%y-%M-%d 00:00:00',alwaysUseStartDate:'true'
                            ,autoUpdateOnChanged:'true',readonly:'true',isShowOthers:'false'})"
                            Width="190"></asp:TextBox>-
                        <asp:TextBox ID="txtEndDate" runat="server" onClick="WdatePicker({vel:'txtEndDate',doubleCalendar:'true'
                            ,dateFmt:'yyyy-MM-dd HH:mm:ss',isShowWeek:'true',startDate:'%y-%M-%d 12:00:00',alwaysUseStartDate:'true'
                            ,autoUpdateOnChanged:'true',readonly:'true',isShowOthers:'false'})"
                            Width="190"></asp:TextBox>
                        <span style="color: Red;">*</span>
                    </td>
                </tr>
                <tr style="height: 36px;">
                    <td>活动状态
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddl1">
                            <asp:ListItem Text="启用" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="禁用"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr style="height: 50px;">
                    <td colspan="2">
                        <label style="margin-left: 60px;"></label>
                        <asp:Button ID="btnSave" runat="server" Text="保 存" CssClass="btnCss" OnClientClick="return Validate()"
                            OnClick="btnSave_Click" />
                        <input type="button" id="btnReturn" value="返 回" class="btnCss" onclick="javascript: history.back()" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <script type="text/javascript" language="javascrip">
        String.prototype.Trim = function () {
            return this.replace(/(^\s*)|(\s*$)/g, "");
        }
        function Validate() {
            var txtTitle = $("#<%=txtTitle.ClientID %>");
            if (txtTitle.val().Trim() == "") {
                txtTitle.css("border-color", "red");
                txtTitle.focus();
                return false;
            }
            var txtStartDate = $("#<%=txtStartDate.ClientID %>");
            if (txtStartDate.val().Trim() == "") {
                txtStartDate.css("border-color", "red");
                txtStartDate.focus();
                return false;
            }
            var txtEndDate = $("#<%=txtEndDate.ClientID %>");
            if (txtEndDate.val().Trim() == "") {
                txtEndDate.css("border-color", "red");
                txtEndDate.focus();
                return false;
            }
            return true;
        }
    </script>
</asp:Content>
